const myMixin = {
    // 放任意组件的选项
    data() {
        return {
            name: '56黑马'
        }
    },
    // 定义生命周期的选项
    mounted() {
        console.log("minxin定义的mounted生命周期")
    },
    methods: {
        sayHello() {
            console.log('mixin sayHello')
        }
    },
    computed: {
        test() {
            return 'mixin的computed'
        }
    }
}

export default {
    myMixin
}